using Headsight.BPMN2WF.Testing.TestObjCtors;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Headsight.BPMN2WF.Testing.TestObjCtorsTest
{
    [TestClass]
    public class BPMN2WFTransformationCtorTest
    {
        private BPMN2WFTransformationCtor _sut;

        [TestInitialize]
        public void SetUp()
        {
            _sut = new BPMN2WFTransformationCtor();
        }

        [TestMethod]
        public void Create()
        {
            var actual = _sut.Create();

            Assert.IsNotNull(actual);
        }

        [TestMethod]
        public void Create_returns_always_new_instance()
        {
            var actual1 = _sut.Create();
            var actual2 = _sut.Create();

            Assert.IsNotNull(actual1);
            Assert.IsNotNull(actual2);
            Assert.AreNotSame(actual1, actual2);
        }
    }
}